package com.dkd.day20250705;

import java.util.Scanner;




public class MainTe {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            System.out.println();
            for (int j = 0; j < n; j++) {
                if(i+j>77){
                    //int num =i+j;
                    char a = (char) ('A' + i+j-78);
                    System.out.print(a);
                }else if(i+j>51){
                    char a = (char) ('A' + i+j- 52);
                    System.out.print(a);
                }else if(i+j>25){
                    char a = (char) ('A' + i+j- 25);
                    System.out.print(a);
                }else{
                    char a = (char) ('A' + i+j);
                    System.out.print(a);
                }
            }
        }
    }
}
